package team.knowers.agency.service;


import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.agency.dao.entity.PaymentDO;
import team.knowers.agency.dto.req.MorePaymentCreateReqDTO;
import team.knowers.agency.dto.req.PaymentCreateReqDTO;

import java.util.List;

public interface PaymentService extends IService<PaymentDO> {
    /**
     * 创建订单
     * @param req
     */
    void createPayment (PaymentCreateReqDTO req);
    /**
     * 支付订单
     */
    void payPayment(int id);

    /**
     * 取消订单
     * @param id
     */
    void cancelPayment(int id);

    /**
     * 查看订单
     * @param touristId
     * @return
     */

    List<PaymentDO> viewOrder(int touristId);
    /**
     * 批量创建订单
     */
    void  moreCreatePayment(MorePaymentCreateReqDTO req);

}
